package com.cychat.mall.service.impl;

import com.Cychat.commons.entity.pojo.Review;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cychat.mall.mapper.ReviewMapper;
import com.cychat.mall.service.ReviewService;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Auther: 刘俊  <br/>
 * Date: 2025-10-31:上午 10:54  <br/>
 * Description: 评论服务实现类
 */
@Service
public class ReviewServiceImpl extends ServiceImpl<ReviewMapper, Review> implements ReviewService {
    @Override
    public void addReview(Review review) {
        review.setCreateTime(new Date());
        review.setUpdateTime(new Date());
        baseMapper.insert(review);
    }
}
